import { ref, computed } from "vue";
const enum ThemeType {
    default = "default",
}

const currentThemeRef = ref<ThemeType>(ThemeType.default);
function updateTheme(newV: ThemeType) {
    currentThemeRef.value = newV;
}

// 获取当前的  主题
const getCurrentThemeClass = computed(() => {
    let themeClass: Record<ThemeType, string> = {
        default: "ccdxd",
    };

    let c = themeClass[currentThemeRef.value];
    return c || "";
});

export { currentThemeRef, updateTheme, getCurrentThemeClass };
